Resolve all using mine

Visualizing Test Execution with OpenTelemetry
, Author: Cezary Piątek



Writing automated tests is only half the battle. Debugging them when something goes wrong is often the bigger challenge — especially when the test runner hijacks the console output or tests run in parallel. The fastest way to identify the source of a problem is to visualize the flow. Imagine being able to see exactly what’s happening in your tests and in the application under test. With OpenTelemetry, that’s entirely possible.

... Read More

Structuring Test Projects for Maintainability
, Author: Cezary Piątek



Writing automated tests is an essential part of any software development process — but organizing test code is often an afterthought. In this post, I’ll share a simple and maintainable project structure for managing tests. I’ll also outline some practical tips that have helped me keep test suites clean, concise, and easy to extend over the years.

... Read More

How to Run a React Development Server with HTTPS
, Author: Cezary Piątek



Running a React development server with HTTPS is essential for testing secure interactions in your app. The development server used by npm start supports HTTPS by default. However, web browsers often complain about the default certificate, making development frustrating. In this post, I will show you how to prepare and configure a trusted certificate that works seamlessly, providing an automated, cross-platform solution to integrate HTTPS into your React app. Step-by-Step Guide 🔗︎ 1. ... Read More

Mocking authorization tokens with WireMock.NET
, Author: Cezary Piątek



Testing applications that require authorization presents a unique set of challenges, especially when it comes to simulating different user permissions. Using an actual authorization server and manually creating test users with specific roles and claims can quickly become cumbersome when trying to cover a wide range of permission combinations. Another option is to use libraries like fake-authentication-jwtbearer, but these libraries have a significant drawback. They replace the actual authorization logic, so we are not testing what will actually be used on production. ... Read More

C# code snippets for Resharper and Rider
, Author: Cezary Piątek



10 years ago I published my first blog post entitled “Don’t write dull code” which was dedicated to a Resharper feature called LiveTemplates. It’s a code snippet engine that was originally introduced in Resharper, but is now also available in Rider. LiveTemplate comes with a set of predefined snippets for basic coding scenarios such as conditions, loops, exception handling, etc. However, the real power lies in the ability to create custom snippets with placeholders that can be completed manually or automatically by macros. ... Read More